home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!spd!jmccarty
- From: jmccarty@spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: Newbie Q: Arrays > 64K?
- Date: 15 Feb 1996 00:54:42 GMT
- Organization: DSC Communications Corporation, Plano, Texas USA
- Message-ID: <4fu08i$kmd@sun001.spd.dsccc.com>
- References: <4f3ajc$oud@earth.superlink.net> <harmon.823680121@pegasus.montclair.edu>
- NNTP-Posting-Host: aplo139.spd.dsccc.com
-
- In article <harmon.823680121@pegasus.montclair.edu>,
- Derek Harmon <harmon@pegasus.montclair.edu> wrote:
- )** Quoting a message by <rizzom@superlink.net> dated <4-Feb-1996>:
- )
- )> I am using Turbo C++ 3.0 in DOS. I would just like to know
- )> how to declare an array that is larger than 64K. I have tried
- )> all of the memory models available
- )
- ) If DOS won't let you, you need to break them down into manageable
- )chunks. While the following abandons the type declaration orthodoxy,
- )I have found it to work reasonably well. You will need to compile
- )under at least the Large memory model to benefit from this approach:
-
- It has nothing to do with DOS. It has to do with the compiler. You need
- to investigate the "huge" keyword. I'm not talking about the "huge"
- model, I mean the keyword.
-
- Mike
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-